package cn.diancan.vo.manager;

import java.util.Calendar;

import cn.diancan.model.Goods;

public class GoodsManagerActionVo {
    
    private Long goodsId;
    private Integer pageNumber = 1;// 当前页码
    private Integer pageSize = 10;// 每页记录数
    
    private Long brandId ;
    private Long goodsCategoryId ;
    private String goodsNumber ;
    private String goodsName ;
    //private String goodsDescription ;
   // private String goodsBarcode ;
	
    private String rangeStr;
    private Double tagPrice;
    private Double retailPrice;
    private String unit;
	
    private String year;
    private String season;
    private Integer applySex;
   // private Double wholeSalePrice;
    private String goodsRemark;
    private Integer moveType;
    
   public Goods vo2GoodsModel(){
       Goods goods =new Goods();
       goods.setId(this.goodsId);
       goods.setBrandId(this.brandId);
       goods.setGoodsCategoryId(this.goodsCategoryId);
       goods.setGoodsNumber(this.goodsNumber);
       goods.setGoodsName(this.goodsName);
       goods.setRangeStr(this.rangeStr);
       goods.setRetailPrice(this.retailPrice);
       //标签价格和售价
       goods.setTagPrice(this.retailPrice);
       goods.setUnit(this.unit);
       
       Calendar a=Calendar.getInstance();
       //得到当前年份
       goods.setYear(""+a.get(Calendar.YEAR));//得到年
       goods.setSeason(this.season);
       goods.setApplySex(this.applySex);
       goods.setGoodsRemark(this.goodsRemark);
       
       return goods;
   } 
   

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public Long getGoodsCategoryId() {
        return goodsCategoryId;
    }

    public void setGoodsCategoryId(Long goodsCategoryId) {
        this.goodsCategoryId = goodsCategoryId;
    }

    public String getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(String goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
    
    public String getRangeStr() {
        return rangeStr;
    }
    public void setRangeStr(String rangeStr) {
        this.rangeStr = rangeStr;
    }
    public Double getTagPrice() {
        return tagPrice;
    }

    public void setTagPrice(Double tagPrice) {
        this.tagPrice = tagPrice;
    }

    public Double getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(Double retailPrice) {
        this.retailPrice = retailPrice;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getSeason() {
        return season;
    }

    public void setSeason(String season) {
        this.season = season;
    }

    public Integer getApplySex() {
        return applySex;
    }

    public void setApplySex(Integer applySex) {
        this.applySex = applySex;
    }

    public String getGoodsRemark() {
        return goodsRemark;
    }

    public void setGoodsRemark(String goodsRemark) {
        this.goodsRemark = goodsRemark;
    }

    public Integer getMoveType() {
        return moveType;
    }

    public void setMoveType(Integer moveType) {
        this.moveType = moveType;
    }
}
